package com.jiyun.racelist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.model.Shijuan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ShijuanMapper extends BaseMapper<Shijuan> {

    @Select("select value from xuanze where id=#{value}")
    String findValue(Integer id);

    @Select("select id,status from shijuan")
    List<Shijuan> findDati();

    @Select("select count(id) from  shijuan where status='正确'")
    Integer findTrue();

    @Select("select count(id) from  shijuan where status='错误'")
    Integer findFalse();
}
